package com.jamila.scancode.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author JAMILA
 * @since 2024-03-30 01:42:05
 */
@Getter
@Setter
@TableName("contacts")
@ApiModel(value = "Contacts对象", description = "")
public class Contacts {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("手机号码")
    @TableField("tel")
    private String tel;

    @ApiModelProperty("紧急联系人")
    @TableField("name")
    private String name;

    @ApiModelProperty("紧急联系人电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("逻辑删除(0-未删除，1-删除；默认0)")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;
}
